package com.hexacta.hrs.sandbox.meetings.service.impl;

import org.springframework.transaction.annotation.Transactional;

import com.hexacta.hrs.sandbox.meetings.data.ActivityDAO;
import com.hexacta.hrs.sandbox.meetings.data.MentorDao;
import com.hexacta.hrs.sandbox.meetings.model.Activity;
import com.hexacta.hrs.sandbox.meetings.service.ActivityService;

/**
 * Administra los Mentores.
 * @author ncortinez
 */

@Transactional
public class ActivityServiceImpl implements ActivityService {
	
	private MentorDao mentorDAO;
	private ActivityDAO activityDAO;
	
	public ActivityServiceImpl() {
		this.setMentorDAO(new MentorDao());
	}

	public void update(Object o) {
		this.getMentorDAO().saveOrUpdate(o);
		return;
	}
	
	public Activity findActivityById(Long id){
		return this.getActivityDAO().findById(id);
	}

	public MentorDao getMentorDAO() {
		return mentorDAO;
	}

	public void setMentorDAO(MentorDao mentorDAO) {
		this.mentorDAO = mentorDAO;
	}

	public ActivityDAO getActivityDAO() {
		return activityDAO;
	}

	public void setActivityDAO(ActivityDAO activityDAO) {
		this.activityDAO = activityDAO;
	}
	
}